get array dimension numpy

39

import numpy as np

arr = np.array([1,2,3])
arr.ndim

Comments

Submit
0 Comments